/*
 * @Descripttion: 我喜欢你
 * @version: 只有你一个
 * @Author: 小吕
 * @Date: 2022-08-11 15:19:45
 * @LastEditors: 吕会录 lvhuilu125807@163.com
 * @LastEditTime: 2023-08-16 10:55:30
 */

import {
	postHttp,
	getHttp
} from "../utils/reuqest.js";

let getwarning = ({
	custId,
	status,
	startTime,
	endTime,
	perPage
}) => getHttp(
	`/warning/list?custId=${custId?custId:''}&status=${status?status:''}&startTime=${startTime?startTime:''}&endTime=${endTime?endTime:''}&perPage=${perPage?perPage:'500'}`
);
// 批量处理预警记录  warning/updateStatus
let PostupdateStatus = ({
	custId
}) => postHttp(`/warning/updateStatus/${custId}`, )
// 获取客户群聊列表 /dashboard/warning/roomChatList
let getroomChatList = ({
	custId,
	roomId
}) => getHttp(`/warning/roomChatList?custId=${custId?custId:''}&roomId=${roomId?roomId:''}`);
// 获取房间入住客户  /dashboard/warning/getRoomCust
let getRoomCust = ({
	custId,
	roomId
}) => getHttp(`/warning/getRoomCust?custId=${custId?custId:''}&roomId=${roomId?roomId:''}`);


// 获取群聊消息列表   /dashboard/warning/findMessageList
let findMessageList = ({
	wxRoomId,
	roomId
}) => getHttp(`/warning/findMessageList?wxRoomId=${wxRoomId?wxRoomId:''}&roomId=${roomId?roomId:''}`);


export {
	getwarning,
	PostupdateStatus,
	getroomChatList,
	getRoomCust,
	findMessageList
}